/**
 * @File   : index.js
 * @Author : xue.xiaoBing
 * @Date   : 2021/4/19
 * @Desc   : 学生页面路由
 **/

import React, {Component} from "react";
import {Route, Switch} from 'react-router-dom';

import Profile from "./profile/Profile";
import ExamInfo from "../exam/examInfo/ExamInfo";
import StartExam from "../exam/startExam/StartExam";


class Student extends Component {
  constructor(props) {
    super(props);
    this.state = {}
  }

  render() {
    return (
      <Switch>
        {/**考试条目**/}
        <Route exact path={'/exam/:auth_id/:exam_id'} component={ExamInfo}/>
        <Route exact path={'/exam/startExam/:auth_id/:exam_id'} component={StartExam}/>

        {/**个人情况**/}
        <Route exact path={'/student/profile/:auth_id'} component={Profile}/>

      </Switch>
    )
  }
}

export default Student